package org.web.ssm.model;

import java.util.Date;

/**
 * Created by LUOLIANG on 2016/6/21.
 */
public class ProductMap {
    private String id;
    private User user;
    private Product product;
    private Date createtime;
    private Date endtime;
    private Double money;

    public ProductMap() {
    }

    public ProductMap(Double money, Date createtime, Date endtime, Product product, User user) {
        this.user = user;
        this.product = product;
        this.createtime = createtime;
        this.endtime = endtime;

        this.money = money;
    }

    @Override
    public String toString() {
        return "ProductMap{" +
                "id='" + id + '\'' +
                ", user=" + user +
                ", product=" + product +
                ", createtime=" + createtime +
                ", endtime=" + endtime +
                ", money=" + money +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
}
